package com.leather.admin.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
*
*  @author kevin
*/
@Data
@TableName("admin")
public class Admin implements Serializable {

    private static final long serialVersionUID = 1552201754248L;


    /**
    * 主键
    * 自增Id
    * isNullAble:0
    */
    @TableId("id")
    private Integer id;

    /**
    * 
    * isNullAble:0
    */
    private String adminName;

    /**
    * 密码
    * isNullAble:0
    */
    @JsonIgnore
    private String password;

    /**
    * 添加时间
    * isNullAble:1
    */
    private Date createTime;

    /**
    * 角色关联外键
    * isNullAble:1
    */
    private Integer roleId;

    /**
     * 管理员标记
     */
    private Integer flag;

    /**
     * 管理员描述
     */
    private String adminDesc;

}
